package com.tengroup.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tengroup.dao.DifficultyDao;
import com.tengroup.entity.DifficultyEntity;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.springframework.stereotype.Service;


@Service("difficultyservice")
public class DifficultyServicempl extends ServiceImpl<DifficultyDao, DifficultyEntity> implements DifficultyService {

    @Override
    public int insert(DifficultyEntity difficulty){
        return baseMapper.insert(difficulty);
    }

    @Override
    public int delete(int id) {
        return baseMapper.deleteById(id);
    }

    @Override
    public int update(DifficultyEntity difficulty) {
        return baseMapper.updateById(difficulty);
    }


}
